import { Global, Module } from '@nestjs/common';
import { DictSonService } from './dict-son.service';
import { DictSonController } from './dict-son.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { DictSon } from './entities/dict-son.entity';
import { DictModule } from '../dict/dict.module';

@Global()
@Module({
  imports: [TypeOrmModule.forFeature([DictSon]), DictModule],
  controllers: [DictSonController],
  providers: [DictSonService],
  exports: [DictSonService, TypeOrmModule],
})
export class DictSonModule {}
